package com.maxdu.labs.stt;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.maxdu.labs.stt.fragments.FeedFragment;
import com.maxdu.labs.stt.fragments.FriendsFragment;
import com.maxdu.labs.stt.fragments.LandingFragment;
import com.maxdu.labs.stt.fragments.TPlansFragment;
import com.maxdu.labs.stt.fragments.TrainingsFragment;

public class TabPagerAdapter extends FragmentPagerAdapter {
    public TabPagerAdapter(FragmentManager fm) {
    super(fm);
    // TODO Auto-generated constructor stub
  }
  @Override
  public Fragment getItem(int i) {
    switch (i) {
    	case 0:
        //Fragement for Feed Tab
    		return new LandingFragment();
        case 1:
            //Fragement for Feed Tab
            return new FeedFragment();
        case 2:
           //Fragment for Ios Tab
            return new TPlansFragment();
        case 3:
            //Fragment for Windows Tab
            return new TrainingsFragment();
  		case 4:
  			//Fragment for Windows Tab
  			return new FriendsFragment();
    }
    return null;
  }
  @Override
  public int getCount() {
    // TODO Auto-generated method stub
    return 5; //No of Tabs
  }
    }